﻿#ifndef APPSETTINGS_H
#define APPSETTINGS_H

#include <QObject>
#include <QVariant>

class AppSettings : public QObject
{
    Q_OBJECT
public:
    explicit AppSettings(QObject *parent = nullptr);

    Q_INVOKABLE QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;
    Q_INVOKABLE void setValue(const QString &key, const QVariant &value);

private:
    QString _writableLocation;
    QString _file;
};

#endif // APPSETTINGS_H
